<template>
  <footer>
    <div class="cons">
      <div class="icon">
        <img src="../../static/img/icon.gif" alt>
        <b v-if="totalNum!=0" style="color:red">{{totalNum}}</b>
      </div>
      <span v-if="total!=0" >￥:{{total}}</span>
    </div>
    <span>去结算</span>
  </footer>
</template>
<script>
export default {
  props: ["totalNum", "total"],
  components: {},
  data() {
    return {};
  },
  computed: {},
  methods: {},
  created() {},
};
</script>
<style scoped lang="">
footer {
  width: 100%;
  height: 40px;
  background: #3b3b3c;
  display: flex;
}
.cons {
  width: 240px;
  height: 100%;
  position: relative;
}
.cons .icon {
  width: 40px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #ffc43a;
  position: absolute;
  top: -10px;
  left: 10px;
}
b {
  position: absolute;
  top: -5px;
  right: 2px;
}
.cons span{
 margin-left: 80px;
 background: #3b3b3c;
color:#fff;
font-size: 20px;
}
.icon img {
  margin-top: 10px;
  margin-left: 8px;
}
span {
  width: 120px;
  height: 100%;
  margin-left: 15px;
  background: #ffc43a;
  text-align: center;
  line-height: 40px;

}
</style>
